<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

//中间件 路由分组 前缀
Route::middleware([])->group(function () {
    Route::view('passport/login', 'login');

    //第三方注册
    Route::post('open/sign/in', 'PassportController@signIn');

    //注册
    Route::post('passport/login', 'PassportController@login');

    //发消息
    Route::post('feed/publish', 'FeedController@publish');

    //消息列表
    Route::get('feed/list', 'FeedController@lists');

    //回复消息列表
    Route::get('feed/reply/list', 'FeedController@replyList');

    //回复消息
    Route::get('reply/publish', 'FeedController@replyPublish');

    //图片上传
    Route::get('upload', 'UploadController@index');
});

